<?php if (!defined('THINK_PATH')) exit();?><script src="/rywechat/Public/js/mp/mer_wx_setting.js"></script>
<script>
$(function(){
  MerWxFunc.init(<?php echo json_encode( $config ) ?>);
});

</script>
<div class="page-content">
  <ol class="breadcrumb">
    <li><a href="<?php echo $home_url ?>">首页</a></li>
    <li><a href="<?php echo $module_url ?>"><?php echo $module_name ?></a></li>
    <li class="active">商户 [<strong><?php echo $merchant_data['name'] ?></strong>] 的 [<?php echo $wx_data['wx_no'] ?>] 功能</li>
  </ol>
  <div class="page-content-inner"> 
    <!-- read_modal -->
    <div class="portlet blue" id="read_modal"> 
      <!-- portlet-title -->
      <div class="portlet-title">
        <div class="caption"> <i class="fa fa-th  "></i> 商户 [<strong><?php echo $merchant_data['name'] ?></strong>] [<?php echo $wx_data['wx_no'] ?>] 的功能 </div>
        <div class="tools"> 
        </div>
      </div>
      <!-- end portlet-title -->
      <div class="portlet-body ">
      
        <div class="row">
          <?php foreach( $wx_func as $key => $row ) : ?>
          <div class="col-xs-2">
            <a class="btn <?php echo $row['color'] ?> icon" href="<?php echo U($row['url']) . '/' . $config['wx_id'] ?>">
              <i class="fa <?php echo $row['icon'] ?>"></i>
              <p><?php echo $row['name'] ?></p>
            </a>
          </div>
          <?php if ( $key > 0 && $key % 5 == 0 ) : ?>
        </div>
        <div class="row">
          <?php endif ;?>
          <?php endforeach ; ?>
        </div>
          <!-- 
          <div class="col-xs-2">
            <a class="btn btn-success icon" href="<?php echo U('Mp/MerUser/index') . '/' . $config['wx_id']?>">
              <i class="fa fa-picture-o"></i>
              <p>素材管理</p>
            </a>
          </div>
          
          <div class="col-xs-2">
            <a class="btn btn-primary icon" href="<?php echo U('Mp/MerWxSetting/index') . '/' . $config['wx_id']?>">
              <i class="fa fa-cny"></i>
              <p>支付设置</p>
            </a>
          </div>
        </div>

        <h4>消息</h4>
        <div class="row">        
          <div class="col-xs-2">
            <a class="btn btn-info icon" href="<?php echo U('Mp/MerContent/index') . '/' . $merchant_data['id']?>">
              <i class="fa fa-comments"></i>
              <p>自动回复</p>
            </a>
          </div>
          <div class="col-xs-2">
            <a class="btn btn-warning icon" href="<?php echo U('Mp/MerGoods/index') . '/' . $merchant_data['id']?>">
              <i class="fa fa-smile-o"></i>
              <p>客服接口</p>
            </a>
          </div> 
          <div class="col-xs-2">
            <a class="btn btn-warning icon" href="<?php echo U('Mp/MerGoods/index') . '/' . $merchant_data['id']?>">
              <i class="fa fa-send"></i>
              <p>消息群发</p>
            </a>
          </div> 
          <div class="col-xs-2">
            <a class="btn btn-danger icon" href="#">
              <i class="fa fa-info-circle  "></i>
              <p>模板群发</p>
            </a>
          </div>
        </div>

        <h4>活动</h4>
        <div class="row">  
    
          <div class="col-xs-2">
            <a class="btn btn-primary icon" href="<?php echo U('Mp/WxEventOpenbox/index') . '/' . $config['wx_id']?>">
              <i class="fa fa-futbol-o"></i>
              <p>拆礼盒</p>
            </a>
          </div>
          <div class="col-xs-2">
            <a class="btn btn-success icon" href="#">
              <i class="fa fa-mobile  "></i>
              <p>摇一摇</p>
            </a>
          </div> 
        </div>
        -->
        <div class="row" style="text-align:center; margin-top:60px;">
          <button type="button" class="btn btn-lg btn-default" onClick="javascript:history.go(-1)"><i class="fa fa-arrow-left"></i> 返回</button>
        </div>
      </div>
    </div>
    <!-- end portlet read_modal --> 
  </div>
  <!-- end page-content-inner --> 
</div>